<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <style>
        table {
            width: 100%;
            border-collapse: collapse;
        }

        table caption {
            font-size: 2em;
            font-weight: bold;
            margin: 1em 0;
        }

        th, td {
            border: 1px solid #999;
            text-align: center;
            padding: 20px 0;
        }

        table thead tr {
            background-color: #008c8c;
            color: #fff;
        }

        table tbody tr:nth-child(odd) {
            background-color: #eee;
        }

        table tbody tr:hover {
            background-color: #ccc;
        }

        table tbody tr td:first-child {
            color: #f40;
        }

        table tfoot tr td {
            text-align: right;
            padding-right: 20px;
        }
        *{
            margin: 0;
            padding: 0;
        }
        ul{
            margin: 0 auto;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 50px;
            list-style: none;
            box-shadow: 0 2px 4px #eeeeee;
        }
        ul > li {
            padding: 6px 16px;
            margin: 0 5px;
            border-right: 1px solid #f7f7f7;
            border-bottom: 1px solid transparent;
            cursor: pointer;
        }
        ul > li:last-child{
            border-right: none;
        }
        li:hover, li:focus, .active {
            color: #ff6615;
            border-bottom: 1px solid #ff6615;
        }
    </style>
</head>
<body>
<ul id="nav1">
    <li class="active">首页</li>
    <li><a href="/incom">主播流水</a></li>
    <li><a href="/user">用户充值去向</a></li>
    <li><a href="/fenxi">平台分析</a></li>
    <li><a href="/onlyanchor?uid=0">主播历史流水</a></li>
    <li><a href="/onlyrecharge?uid=0">历史充值去向</a></li>
</ul>
<h1 style="color: red">主播收入列表</h1>
<a href="/updata_incom?time={{nowtime}}" target="_blank">更新当前数据</a>
<ul id="nav">
    {% for item in time_list %}
        {% if item == nowtime %}
            <li class="active"><a href="/incom?time={{item}}" >{{ item }}</a></li>
        {% else %}
            <li ><a href="/incom?time={{item}}" >{{ item }}</a></li>
        {% endif %}
    {% endfor %}
</ul>
<table>
    <tr>
        {% for key1,value1 in tongji.items() %}
        <th>{{ key1 }}</th>
        {% endfor %}
    </tr>
    <tr>
        {% for key1,value1 in tongji.items() %}
        <td>{{ value1 }}</td>
        {% endfor %}
    </tr>
</table>
<table>
    {% for item in list %}
    <tr>
        {% for it1 in item[:1] %}
            <td><a href="/onlyanchor?uid={{it1}}" target="_blank">{{ it1 }}</a><br/></td>
        {% endfor %}
        {% for it1 in item[1:10] %}
            <td>{{ it1 }}</td>
        {% endfor %}
        {% for it1 in item[10:] %}
            <td>{{ it1 }}</td>
        {% endfor %}
    </tr>
    {% endfor %}
</table>


</body>
</html>